<?php

class Core_Plugin_Menu
{
	static public function coreAdminLogout($data)
	{
		return $data;
	}
	static public function coreAdminViewer($data)
	{
		$viewer =  Nuo::getViewer();
		if(is_object($viewer) && $viewer->getId()){
			$data['label'] =  $viewer->getTitle();
			$data['options']= array(
				'id'=>$viewer->getId(),
			);
			return $data;	
		}
		return false;
	}

}
